<template>
	<div>

		<div @click="go" class=" ">苹果</div>


	<el-table
		  :data="tableData"
		
	>
		  <el-table-column
			prop="createTime"
			label="日期"
			width="180">
		  </el-table-column>
		</el-table>


		<Pagination :info="Pinfo" @getItemList="getItemList" />

     

	</div>
</template>

<script>
	import Pagination from '@/components/pagination.vue';
	export default {
		components: {
			Pagination
		},
		data() {
			return {
				Pinfo:{
					size:10,
					current:1
				},
				tableData:[]
			}
		},
		created() {
          
		},
		methods: {
			load(){
				this.Pinfo.current+=1
				this.getItemList()
			},
			// 获取列表
			getItemList(e){
				this.axios.get("/order/list", {
					params:this.Pinfo
				}).then(res => {
					this.Pinfo=this.$PageInfo(res);
					this.tableData=res.records;
				})
			},
			go() {
				this.$router.push({
					name: "shopDetail",
					params: {
						pre: 11
					}
				})
			},

			pageChange(cur) {
				this.refreshTable(cur.page, cur.limit) // 刷新表格，把值传给后台
			}

		}
	}
</script>

<style>
	
</style>
